package cn.itcast;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: zhaojie
 * @Date: Created in 11:40 2018/7/21
 * @Description: 要使用负载均衡 将 RibbonManager项目的负载均衡copy到此项目
 */
@SpringBootApplication
@EnableEurekaClient
@ComponentScan("cn.itcast")
public class UserManagerApplication {
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
    public static void main(String[] args) {
        SpringApplication.run(UserManagerApplication.class, args);
    }
}

